package uns.fit.gis.mapobj;

import java.util.*;

public class Crossroads {
	private int id;
	//private Point point;
	private int point;
	//private Vector segments;
	private int[] segments;
	//private int[] targets; //adjacent crossroadses
	//private int[] distances; //distances to adjacent crossroadses
	//private int[] times; //times to adjacent crossroadses
	
	public Crossroads()
	{
		//segments = new Vector();
	}
	/*
	public Vector getSegments() {
		return segments;
	}

	public void setSegments(Vector segments) {
		this.segments = segments;
	}
	*/
	public int[] getSegments() {
		return segments;
	}

	public void setSegments(int[] segments) {
		this.segments = segments;
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	/*
	public Point getPoint() {
		return point;
	}

	public void setPoint(Point point) {
		this.point = point;
	}
	*/
	public void setX(int x) {
        point = ((x & 0xFFFF) << 16) | (point & 0xFFFF);
    }

    public int getX() {
        return ((point >> 16) & 0xFFFF);
    }

    public void setY(int y) {
        point = (point & 0xFFFF0000) | (y & 0xFFFF);
    }

    public int getY() {
        return (point & 0xFFFF);
    }
	/*
	public int[] getTargets() {
		return targets;
	}
	public void setTargets(int[] targets) {
		this.targets = targets;
	}
	public int[] getDistances() {
		return distances;
	}
	public void setDistances(int[] distances) {
		this.distances = distances;
	}
	public int[] getTimes() {
		return times;
	}
	public void setTimes(int[] times) {
		this.times = times;
	}
	*/
}
